FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PIP_NO_CACHE_DIR=1
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install --upgrade pip && pip install -r requirements.txt
COPY intelli_port /app/intelli_port
COPY config /app/config
EXPOSE 8000
CMD ["uvicorn", "intelli_port.api.app_v2:create_app", "--factory", "--host", "0.0.0.0", "--port", "8000"]